package com.lqian.demo03.singleton.lazy;

public class LazySimpleSingleton {
    private static LazySimpleSingleton lazy = null;
    public synchronized static LazySimpleSingleton getInstance(){
        //thread- 0 thread- 1
        if(lazy == null){
            lazy = new LazySimpleSingleton(); //覆盖
        }
        return lazy;
    }
}
